package guestbook;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;

@PersistenceCapable
public class totoForm extends abstractTotoObject {    
	
	@Persistent   
	private String[] day;
	@Persistent 
	private String[] time;
	@Persistent
	private String[] league;    
	@Persistent    
	private String[] teams;
	
	public totoForm(String[] day, String[] time, String[] league, String[] teams) {        
		this.day = day;        
		this.time = time;        
		this.league = league;
		this.teams=teams;
		}    
	public String[] getDay() {        
		return day;    
		}    
	public String[] getTeams() {        
		return teams;    
		}    
	public String[] getTime() 
	{        
		return time;    
		}   
	
	public String[] getLeague() 
	{        
		return league;    
		}
	
	public void setDay(String[] day) {
		for (int i=0;i<16;i++){
			this.day[i] = day[i];  
		}
		  
		}    
	public void setTeams(String[] teams) {
		for (int i=0;i<16;i++){
			this.teams[i] = teams[i];   
		}    
	}
	public void setLeague(String[] league) {        
		for (int i=0;i<16;i++){
			this.league[i] = league[i];
		}
	}
	
	public void setTime(String[] time) {        
		for (int i=0;i<16;i++){
			this.time[i] = time[i];
		}
	}
	
	public String toString(){
		String result="";
		for (int i=15;i>=0;i--){
			if (i!=0) result+=this.getDay()[i]+"$";
			else result+=this.getDay()[i];
		}
		
		result+="#";
		
		/*for (int i=15;i>=0;i--){
			if (i!=0) result+=this.getTime()[i]+"$";
			else result+=this.getTime()[i];
		}
		
		result+="#";*/
		
		for (int i=15;i>=0;i--){
			if (i!=0) result+=this.getLeague()[i]+"$";
			else result+=this.getLeague()[i];
		
		}
		
		result+="#";
		
		for (int i=15;i>=0;i--){
			if (i!=0)	result+=this.getTeams()[i]+"$";
			else result+=this.getTeams()[i];
		}
		
		return result;		
		
	}
}